<div class="grid_7">
    <div class="box">
        <h2>
            <a href="#" id="toggle-tables">CAR PRICE AND DESCRIPTION : 
                <?= $this->management_model->get_make('CAR', $version['cost']->make_id)->make; ?> |
                <?= $this->management_model->get_model('CAR', $version['cost']->model_id)->model; ?> |
                <?= $this->management_model->get_version('CAR', $version['cost']->id)->version; ?> 
            </a>
        </h2>
        <div class="block" >
            <form name="admin-form" action="<?= base_url(); ?>admin/management/version_price_description_update/<?= $version['cost']->make_id; ?>/<?= $version['cost']->model_id; ?>/<?= $version['cost']->id; ?>" method="post">
                <fieldset>
                    <legend>PRICE AND DESCRIPTION : </legend>
                    <?php
                    if ($this->session->flashdata('message')) {
                        $msg = $this->session->flashdata('message');
                        echo '<font color="red">' . $msg . '</font>';
                    }
                    ?> 
                    <div class="field">

                        <input name="make" type="hidden" value="<?= $version['cost']->make_id; ?>" />
                        <input name="model" type="hidden" value="<?= $version['cost']->model_id; ?>" />
                        <input name="version" type="hidden" value="<?= $version['cost']->id; ?>" />
                        <label> Price (Exclusive of Taxes and others) </label>
                        <input id="red" name="price" type="text" size="42" value="<?= $version['cost']->price; ?>" />
                        <label> Body Type </label>
                        <select name="body">
                            <?php foreach ($body_type as $body_type) : ?>
                                <option value="<?= $body_type->slno; ?>"><?= $body_type->description; ?></option>
                            <?php endforeach; ?>
                        </select>
                        <label> Fuel Type</label>
                        <select name="fuel">
                            <?php foreach ($fuel_type as $fuel_type) : ?>
                                <option value="<?= $fuel_type->slno; ?>"><?= $fuel_type->description; ?></option>
                            <?php endforeach; ?>
                        </select>

                        <label> Transmission</label>
                        <select name="transmission">
                            <?php foreach ($transmission as $transmission) : ?>
                                <option value="<?= $transmission->slno; ?>"><?= $transmission->description; ?></option>
                            <?php endforeach; ?>
                        </select>
                        <label> Car Description (if any) </label>
                        <textarea name="description" rows="10" cols="94%"><?= trim($version['cost']->detail); ?></textarea>
                        <input type="submit" value="Update" name="update"/>
                    </div>
                </fieldset>
            </form>
        </div>
    </div> <!-- END OF BOX -->
</div>